This is a patch that will prevent Mario from leaving the course when getting a star.

This is similar to the SM64 Non-Stop hack. But this one keeps the animations and allows you to save.

It was made for the US version of Super Mario 64 using the sm64 decomp project as a basis.

You can also manually modify the game by replacing two lines of the decompiled source code:

-open src/game/interaction.c
-On line 771, replace "u32 noExit = (o->oInteractionSubtype & INT_SUBTYPE_NO_EXIT) != 0;" with "u32 noExit = 16 <= gCurrCourseNum && gCurrCourseNum <= 18 ? (o->oInteractionSubtype & INT_SUBTYPE_NO_EXIT) != 0 : 1;"

-open src/game/camera.c
-On line 5212, replace "cutscene = determine_dance_cutscene(c);" with "cutscene = CUTSCENE_DANCE_DEFAULT;"

MetalAbaj
26 september 2020